<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
    <head>
        <title>企业首页</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="css/enterprise_font_page.css"/>
        <link rel="stylesheet" type="text/css" href="css/footer.css"/>
        <link rel="stylesheet" type="text/css" href="css/header.css"/>
        <script type="text/javascript">
            document.ready(function(){
                function let(id)
                {
                    document.getElementById(id).className = "hover";
                }
                function gogo(id)
                {
                    document.getElementById(id).className = "gogo";
                }
        </script>
    </head>

    <body>
        <div id="container">
            <!--头部文件为绿色信贷系统logo以及菜单栏-->
            <div id="header">
                <div id="logo">
                <div id="log_in">
                </div>                    
                </div>
                <div id="menu">
                    <ul>
                        <li class="gogo" id="i0" onmouseover="let('i0')" onmouseout="gogo('i0')"><a href="login">企业首页</a></li>
                        <li class="gogo" id="i1" onmouseover="let('i1')" onmouseout="gogo('i1')"><a href="financial/lookup_Financial">企业财务</a></li>
                        <li class="gogo" id="i2" onmouseover="let('i2')" onmouseout="gogo('i2')"><a href="environment/lookup_Environment">社会环境</a></li>
                        <li class="gogo" id="i3" onmouseover="let('i3')" onmouseout="gogo('i3')"><a href="upload/lookup_Upload">数据提交</a></li>
                        <li class="gogo" id="i4" onmouseover="let('i4')" onmouseout="gogo('i4')"><a href="warning/lookup_Warning">警告预警</a></li>
                        <li class="gogo" id="i5" onmouseover="let('i5')" onmouseout="gogo('i5')"><a href="customer/lookup_RepaymentRecord">还贷情况</a></li>
                    </ul>
                </div>
            </div>
            <div id="main">
                <!--企业的logo以及应许还债情况-->
                <div id="enterprise">
                    <div id="enterprise_icon">
                        <img id="play" src="image/picture1.png" style="max-width:640px; max-height:180px;"/>
                    </div>
                                       <script language="javascript">
                                               var currentP=0;
                                               setInterval("change(currentP)",3000);

                                               function change(c)
                                               {
                                                   if(c>2) c=0;
                                                   else c++;
                                                   currentP=c;
                                                   display(c);
                                               }

                                               function display(index)
                                               {
                                                   if(index==0)
                                                       document.getElementById('play').src="image/picture1.png";
                                                   else{
                                                       if(index==1)
                                                           document.getElementById('play').src="image/picture3.png"
                                                        else if(index==2)
                                                           document.getElementById('play').src="image/picture2.png"
                                                   }
                                               }
                                       </script>
                    <div id="debt">
                       <div style="width:230px;height:130px;float:left;margin-top: 40px;margin-left:10px;">
                        <table width="95%" cellpadding="5px">
                            <tr>
                                <td>
                                    <a href="customer/lookup_RepaymentRecord">据下次还贷还有<b><font color="#AE0000"><s:property value="leftDays" /></font></b>天，届时需还<b><font color="#AE0000"><s:property value="record.getAmount()" /></font></b>元</a>
                                </td>
                            </tr>
                             <tr>
                                <td>
                                    <a href="upload/lookup_Upload">据下次财务报表提交截止还有<b><font color="#AE0000"><s:property value="financialLeftDays" /></font></b>天</a>
                                </td>
                            </tr>                           
                            <tr>
                                <td>
                                    <a href="upload/lookup_Upload">据下次环境报表提交截止还有<b><font color="#AE0000"><s:property value="environmentLeftDays" /></font></b>天</a>
                                </td>
                            </tr>
                            </tr>
                        </table>
                       </div>    
                    </div>
                </div>
                <div id="left-info">
                    <table style="width:95%;height:95%;margin-left:5px;margin-top:3px;">
                        <tr style="height:50px;width:100%;">
                            <td></td>                            
                        </tr> 
                        <tr style="height:135px;width:100%;">                           
                            <td style="width:75px;height:135px;background:url(image/logo.png) no-repeat;">     
                            </td>                               
                            <td style="text-align:left;">
                                <table style="font-size:13px;font-family:Arial, Helvetica, sans-serif;color:black;">
                                        <tr>
                                            <td>
                                                <b>企业： <s:property value="enterprise.name" /></b>
                                            </td>
                                        </tr>  
                                        <tr>
                                            <td>
                                                <b>地址： <s:property value="enterprise.address" /></b>
                                            </td>
                                        </tr>  
                                        <tr>
                                            <td>
                                                <b>邮箱：<s:property value="enterprise.email" /></b>
                                            </td>
                                        </tr>  
                                        <tr>
                                            <td>
                                                <b>类型：<s:property value="enterprise.enterpriseType.type" /></b>
                                            </td>
                                        </tr>  
                                </table>    
                            </td>    
                        </tr>    
                    </table>    
                </div>    
                <br>
                <div id="center" style="margin-top: 1px;">
                    <table style="width:95%;height:95%;margin-left:2px;margin-top:3px;">
                        <tr style="height:50px;width:100%;">
                            <td></td>                            
                        </tr> 
                        <tr>
                            <td>
                                <div style="width:100%;height:130px;">
                                    <marquee height="130px" width="275" direction="up" scrollamount="2" behavior="scroll" align="middle" onmouseover="this.stop()" onmouseout="this.start()" scrolldelay="100">
                                             <table height="135px" width="250px" border="0" align="center" cellspacing="4px">
                                            <tbody>
                                                <s:iterator value="policyList" var="policy">
                                                <tr>
                                                    <td height="30">
                                                        <div class="roll" align="left">
                                                            <img height="10" width="10" alt="cx" src="image/smallico.gif">
                                                            <a class="roll-link" target="_blank" href="26.html"><s:property value="#policy"/></a>
                                                        </div>
                                                    </td>
                                                    <td align="right" width="50">
                                                        <div align="center"style="margin-top:0px;" >
                                                            <div align="center" style="font-size:12;">11-09-12</div>
                                                        </div>
                                                    </td>
                                                </tr>
                                                </s:iterator>
                                            </tbody>
                                        </table>
                                    </marquee>
                                </div>                               
                            </td>    
                        </tr>    
                    </table>
                </div>    
                <!--右部是警告-->
                <div id="right-warn">
                    <table  cellpadding="0" style="font-size:13px;font-family:Arial, Helvetica, sans-serif;width:95%;height:95%;">
                        <tr style="height:50px;width:100%;">
                            <td></td>                            
                        </tr>   
                        <tr>
                            <td>
                                <div style="height:145px;width: 310px;">
                                    <s:iterator value="fwarningList" var="flist" >
                                        <table width=300px border="0" align="center" cellpadding="2" cellspacing="0">
                                            <tr>
                                                <td width="15" height="1s3" align="center"><img src="image/smallico.gif" width="7" height="7"></td>
                                                <td><a href="" target="_blank"><s:property value="#flist.type.factor.name" />警告</a></td>
                                                <td width="60" ><div class="date"><s:property value="#flist.date"/></div></td>
                                            </tr>
                                        </table>                                        
                                    </s:iterator>
                                    <s:iterator value="ewarningList" var="elist" >
                                        <table width=300px border="0" align="center" cellpadding="2" cellspacing="0">
                                            <tr>
                                                <td width="15" height="23" align="center"><img src="image/smallico.gif" width="7" height="7"></td>
                                                <td><a href="" target="_blank"><s:property value="#elist.type.factor.name" />警告</a></td>
                                                <td width="60" ><div class="date"><s:property value="#elist.date"/></div></td>
                                            </tr>
                                        </table>                                        
                                    </s:iterator>
                                </div>
                            </td>    
                        </tr>
                    </table>
                </div>    

            </div>
                <div id="footer">
                    <table id="footer-container" border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
                        <tbody>
                            <tr>
                                <td>
                                    <table class="foot-links" border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tbody>
                                            <tr>
                                                <td><a href="http://www.citigroup.com/" target="_blank">Citigroup.com</a></td>
                                                <td><ul>
                                                        <li><a href="http://www.citi.com.cn/html/cn/about_us/citi_group.html">关于花旗</a></li>
                                                        <li><a href="http://www.citi.com.cn/html/cn/HR/HR.html" target="_blank">加入花旗</a></li>
                                                        <li><a href="https://www.citibank.com.cn/CNGCB/APPS/portal/loadPage.do?path=/info/det/atm_network.htm">分行位置</a></li>
                                                        <li><a href="http://www.citibank.com.cn/chinese/footer/sitemap.htm">网站导航</a></li>
                                                        <li><a href="http://www.citibank.com.cn/chinese/footer/privacy.htm">隐私保护</a></li>
                                                        <li><a href="http://www.citibank.com.cn/chinese/footer/terms.htm">条件与条款</a></li>
                                                    </ul>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                        <tbody>
                                            <tr>
                                               <td class="footer-logo"><img src="image/logo_footer.gif" alt="Citi" title="Citi"/></td>
                                                <td class="foot-gray" align="right">沪ICP备05047918<br>
                                                    Copyright ? 2011 Citigroup Inc.</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
        </div>
    </body>
</html>
